package jp.ac.aiit.yc.sww.database.dao;

import java.util.Map;

import jp.ac.aiit.yc.sww.Resources.ResourceManager;
import jp.ac.aiit.yc.sww.Resources.SwwResource;

public abstract class BaseDAO {
	private ResourceManager sqlResource;
	private Map<String, String> headers;

	public Map<String, String> getHeaders() {
		return headers;
	}

	public void setHeaders(Map<String, String> headers) {
		this.headers = headers;
	}

	public BaseDAO(){
		this.sqlResource = new ResourceManager(SwwResource.SQL);
	}

	/**
	 * @param ���
	 * @return
	 * */
	protected String getSP(String sp){
		return this.sqlResource.getValue(sp.toString());
	}



}
